package com.woniuxy.portal.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniuxy.portal.model.entity.Book;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.portal.model.entity.BookType;

import java.util.List;

/**
* @author liboyang
* @description 针对表【t_book】的数据库操作Service
* @createDate 2024-10-12 18:01:15
*/
public interface BookService extends IService<Book> {
    Page<Book> findTopSales(Integer pageNum, Integer pageSize);

    Page<Book> findByType(int pageNum, int pageSize, int typeId);

    Book findById(Long id);
}
